package com.gaea.modules.common.service;

import com.gaea.base.mapper.IBasicSetMapper;
import com.gaea.base.vo.UserVo;
import com.gaea.modules.common.model.entity.SysUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 用户业务接口
 *
 * @author bjsonghongxu
 * @create 2018-03-29 15:21
 **/
public interface ISysUserService extends IBasicSetMapper<SysUser> {

    /**
     * 用户登录
     * @param userVo
     * @return UserVo
     */
    UserVo login(UserVo userVo);

    /**
     * 生成图形验证码
     */
    void createAuthCode(HttpServletResponse response, HttpServletRequest request) throws IOException;

}
